﻿package  {
	
	import flash.display.*;
	import flash.events.*;
	import flash.net.*;

	// Use this as the document class, and be sure to define a 
	// MovieClip in the library exporter a 'Picture' class.
	public class Parent extends MovieClip {
		
		private var picture:Sprite;
		private var reflection:BitmapData;
		private var reflectionHolder:Bitmap;
		
		public function Parent() {
			init();
		}
		function init() {
			var l:Loader = new Loader();
			var r:URLRequest = new URLRequest("Child.swf");
			l.contentLoaderInfo.addEventListener(Event.COMPLETE, onc);
			l.load(r);
		}
		function onc(e:Event) {
			var l:Loader = e.target.loader as Loader;
			addChild(l);
			var obj:Child = l.content as Child;
			obj.print();
			trace(obj.getStr);
		}
		function callback() {
			trace("this is call back");
		}
	}
}